Integrand size = 12, antiderivative size = 61 \[ \int (c+d x) \text {sech}(a+b x) \, dx=\frac {2 (c+d x) \arctan \left (e^{a+b x}\right )}{b}-\frac {i d \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {i d \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4265, 2317, 2438} \[ \int (c+d x) \text {sech}(a+b x) \, dx=\frac {2 (c+d x) \arctan \left (e^{a+b x}\right )}{b}-\frac {i d \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {i d \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2} \]
[In]
[Out]
Rule 2317
Rule 2438
Rule 4265
Rubi steps \begin{align*} \text {integral}& = \frac {2 (c+d x) \arctan \left (e^{a+b x}\right )}{b}-\frac {(i d) \int \log \left (1-i e^{a+b x}\right ) \, dx}{b}+\frac {(i d) \int \log \left (1+i e^{a+b x}\right ) \, dx}{b} \\ & = \frac {2 (c+d x) \arctan \left (e^{a+b x}\right )}{b}-\frac {(i d) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{a+b x}\right )}{b^2}+\frac {(i d) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{a+b x}\right )}{b^2} \\ & = \frac {2 (c+d x) \arctan \left (e^{a+b x}\right )}{b}-\frac {i d \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {i d \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2} \\ \end{align*}
Time = 0.06 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.38 \[ \int (c+d x) \text {sech}(a+b x) \, dx=\frac {c \arctan (\sinh (a+b x))}{b}+\frac {i d \left (b x \left (\log \left (1-i e^{a+b x}\right )-\log \left (1+i e^{a+b x}\right )\right )-\operatorname {PolyLog}\left (2,-i e^{a+b x}\right )+\operatorname {PolyLog}\left (2,i e^{a+b x}\right )\right )}{b^2} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.66
method | result | size |
derivativedivides | \(\frac {\frac {d \left (i \left (b x +a \right ) \left (\ln \left (1-i {\mathrm e}^{b x +a}\right )-\ln \left (1+i {\mathrm e}^{b x +a}\right )\right )-i \operatorname {dilog}\left (1+i {\mathrm e}^{b x +a}\right )+i \operatorname {dilog}\left (1-i {\mathrm e}^{b x +a}\right )\right )}{b}-\frac {2 d a \arctan \left ({\mathrm e}^{b x +a}\right )}{b}+2 c \arctan \left ({\mathrm e}^{b x +a}\right )}{b}\) | \(101\) |
default | \(\frac {\frac {d \left (i \left (b x +a \right ) \left (\ln \left (1-i {\mathrm e}^{b x +a}\right )-\ln \left (1+i {\mathrm e}^{b x +a}\right )\right )-i \operatorname {dilog}\left (1+i {\mathrm e}^{b x +a}\right )+i \operatorname {dilog}\left (1-i {\mathrm e}^{b x +a}\right )\right )}{b}-\frac {2 d a \arctan \left ({\mathrm e}^{b x +a}\right )}{b}+2 c \arctan \left ({\mathrm e}^{b x +a}\right )}{b}\) | \(101\) |
parts | \(\frac {\arctan \left (\sinh \left (b x +a \right )\right ) d x}{b}+\frac {\arctan \left (\sinh \left (b x +a \right )\right ) c}{b}-\frac {d \left (x \arctan \left (\sinh \left (b x +a \right )\right )-\frac {i \left (b x +a \right ) \left (\ln \left (1-i {\mathrm e}^{b x +a}\right )-\ln \left (1+i {\mathrm e}^{b x +a}\right )\right )-i \operatorname {dilog}\left (1+i {\mathrm e}^{b x +a}\right )+i \operatorname {dilog}\left (1-i {\mathrm e}^{b x +a}\right )-2 a \arctan \left ({\mathrm e}^{b x +a}\right )}{b}\right )}{b}\) | \(124\) |
risch | \(\frac {2 c \arctan \left ({\mathrm e}^{b x +a}\right )}{b}-\frac {i d \ln \left (1+i {\mathrm e}^{b x +a}\right ) x}{b}-\frac {i d \ln \left (1+i {\mathrm e}^{b x +a}\right ) a}{b^{2}}+\frac {i d \ln \left (1-i {\mathrm e}^{b x +a}\right ) x}{b}+\frac {i d \ln \left (1-i {\mathrm e}^{b x +a}\right ) a}{b^{2}}-\frac {i d \operatorname {dilog}\left (1+i {\mathrm e}^{b x +a}\right )}{b^{2}}+\frac {i d \operatorname {dilog}\left (1-i {\mathrm e}^{b x +a}\right )}{b^{2}}-\frac {2 d a \arctan \left ({\mathrm e}^{b x +a}\right )}{b^{2}}\) | \(147\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 157 vs. \(2 (48) = 96\).
Time = 0.27 (sec) , antiderivative size = 157, normalized size of antiderivative = 2.57 \[ \int (c+d x) \text {sech}(a+b x) \, dx=\frac {i \, d {\rm Li}_2\left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - i \, d {\rm Li}_2\left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) + {\left (i \, b c - i \, a d\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + i\right ) + {\left (-i \, b c + i \, a d\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - i\right ) + {\left (-i \, b d x - i \, a d\right )} \log \left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right ) + 1\right ) + {\left (i \, b d x + i \, a d\right )} \log \left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right ) + 1\right )}{b^{2}} \]
[In]
[Out]
\[ \int (c+d x) \text {sech}(a+b x) \, dx=\int \left (c + d x\right ) \operatorname {sech}{\left (a + b x \right )}\, dx \]
[In]
[Out]
\[ \int (c+d x) \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )} \operatorname {sech}\left (b x + a\right ) \,d x } \]
[In]
[Out]
\[ \int (c+d x) \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )} \operatorname {sech}\left (b x + a\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int (c+d x) \text {sech}(a+b x) \, dx=\int \frac {c+d\,x}{\mathrm {cosh}\left (a+b\,x\right )} \,d x \]
[In]
[Out]